package com.hl.card.credit.pub.entity;
                                                             
import java.util.Map;

import com.hl.card.credit.pub.model.PublicOrdersAllModel;
import com.hl.card.credit.pub.utils.CommonUtil;
                                                             
/**                                                          
 * 发票                                                  
 * @author wdf                                             
 *                                                           
 */                                                          
public class PublicInvoice {                                       
	/**
 	*主键
 	*/
	private Integer id;

	/**
 	*关联订单号
 	*/
	private String order_code;

	/**
 	*发票单号
 	*/
	private String invoice_code;

	/**
 	*业务类型
 	*/
	private String business_type;

	/**
 	*序号
 	*/
	private String serial_number;

	/**
 	*发票抬头
 	*/
	private String invoice_payee;

	/**
 	*开票金额
 	*/
	private Double invoice_money;

	/**
 	*税号
 	*/
	private String tax_number;

	/**
 	*发票状态
 	*/
	private String invoice_status;

	/**
 	*订单状态
 	*/
	private String order_status;

	/**
 	*说明
 	*/
	private String alias;
	
	public PublicInvoice() {
		// TODO Auto-generated constructor stub
		
	}
	public PublicInvoice(String order_code) {
		// TODO Auto-generated constructor stub
		this.order_code = order_code;
	}
	public static PublicInvoice init(Map<String, Object> map,
			PublicOrdersAllModel model) {
		if(CommonUtil.isEmpty(model))
		{
			return null;
		}
		PublicInvoice publicInvoice=model.getPublicInvoice();
		//后续需要增加
		return publicInvoice;
	}

                                               
                                                             
	public void setId(Integer id){ 
		this.id = id;
	}

	public Integer getId(){ 
		return this.id;
	}

	public void setOrder_code(String order_code){ 
		this.order_code = order_code;
	}

	public String getOrder_code(){ 
		return this.order_code;
	}

	public void setInvoice_code(String invoice_code){ 
		this.invoice_code = invoice_code;
	}

	public String getInvoice_code(){ 
		return this.invoice_code;
	}

	public void setBusiness_type(String business_type){ 
		this.business_type = business_type;
	}

	public String getBusiness_type(){ 
		return this.business_type;
	}

	public void setSerial_number(String serial_number){ 
		this.serial_number = serial_number;
	}

	public String getSerial_number(){ 
		return this.serial_number;
	}

	public void setInvoice_payee(String invoice_payee){ 
		this.invoice_payee = invoice_payee;
	}

	public String getInvoice_payee(){ 
		return this.invoice_payee;
	}

	public void setInvoice_money(Double invoice_money){ 
		this.invoice_money = invoice_money;
	}

	public Double getInvoice_money(){ 
		return this.invoice_money;
	}

	public void setTax_number(String tax_number){ 
		this.tax_number = tax_number;
	}

	public String getTax_number(){ 
		return this.tax_number;
	}

	public void setInvoice_status(String invoice_status){ 
		this.invoice_status = invoice_status;
	}

	public String getInvoice_status(){ 
		return this.invoice_status;
	}

	public void setOrder_status(String order_status){ 
		this.order_status = order_status;
	}

	public String getOrder_status(){ 
		return this.order_status;
	}

	public void setAlias(String alias){ 
		this.alias = alias;
	}

	public String getAlias(){ 
		return this.alias;
	}

                                              
}                                                            
